import request from '../http/index'
//  
// 创建轮播图图片
export function creatSwipe(data) {
    return request({
      url: '/reset/swipe',
      method: 'POST',
      data
    })
  }
// 获取轮播图图片列表
export function getSwipe() {
    return request({
      url: '/reset/swipe',
      method: 'get'
    })
  }
// 根据ID获取获取轮播图图片
export function idGetSwipe(id) {
    return request({
      url: `/reset/swipe/${id}`,
      method: 'get'
    })
  }
// 修改获取轮播图图片
export function updateSwipe(id, data) {
    return request({
      url: `/reset/swipe/${id}`,
      method: 'put',
      data
    })
  }
// 删除获取轮播图图片
export function deleteSwipe(id) {
    return request({
      url: `/reset/swipe/${id}`,
      method: 'delete'
    })
  }